package com.flower.service.impl;

import com.flower.dao.UserMapper;
import com.flower.pojo.User;
import com.flower.service.UserLoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserLoginServiceImpl implements UserLoginService {

    @Autowired
    private UserMapper mapper;

    @Override
    public User loginUserByAccount(String account) {
        return mapper.loginUserByAccount(account);
    }

    @Override
    public int addUser (User user){return mapper.addUser(user);}
}
